


import os
import shelve

#from PyQt4.QtGui import QDesktopServices

from dexen import APPDATA_DIR
from dexen.system.client.ui import resource # This import is needed to load icons
from dexen.system.client.proxy import ServerProxy


SETTINGS_PATH = os.path.join(APPDATA_DIR, "settings.dexen")
settings_db = shelve.open(SETTINGS_PATH)
CLIENT_DB = os.path.join(APPDATA_DIR, "client_data.dxn")

svr_proxy = ServerProxy()

def GetServerProxy():
    return svr_proxy